import Mock from 'mockjs'

Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/res/loadAllUrl`, 'get', () => {
  let result = {}
  result.code = 200
  result.message = "操作成功"
  result.success = true
  result.result = [
    {
			"parentId": "",
			"key": "00bc2e5c-aaee-45d1-ac38-7ea8f7e25cdb",
			"name": "dashboard",
			"path": "dashboard",
			"component": "blank",
			"meta": {
				"title": "Dashboard",
				"keepAlive": false,
				"icon": "dashboard",
				"order": 1,
				"desc": "Dashboard",
				"hidden": false
			},
			"children": [
				{
					"parentId": "00bc2e5c-aaee-45d1-ac38-7ea8f7e25cdb",
					"key": "05b3c82ddb2536a4a5ee1a4c46b5abef",
					"name": "analysis",
					"path": "analysis",
					"component": "dashboard/analysis/Analysis",
					"meta": {
						"title": "分析页",
						"keepAlive": false,
						"icon": "",
						"order": 1,
						"desc": "分析页",
						"hidden": false
					},
					"children": null
				},
				{
					"parentId": "00bc2e5c-aaee-45d1-ac38-7ea8f7e25cdb",
					"key": "0167d575-230f-4b17-a7e8-79003257ea2e",
					"name": "workplace",
					"path": "workplace",
					"component": "dashboard/workplace/WorkPlace",
					"meta": {
						"title": "工作台",
						"keepAlive": false,
						"icon": "",
						"order": 3,
						"desc": "工作台",
						"hidden": false
					},
					"children": null
				}
			]
		},
		{
			"parentId": null,
			"key": "d7d6e2e4e2934f2c9385a623fd98c6f3",
			"name": "isystem",
			"path": "isystem",
			"component": "blank",
			"meta": {
				"title": "系统设置",
				"keepAlive": false,
				"icon": "setting",
				"order": 3,
				"desc": "系统设置",
				"hidden": false
			},
			"children": [
				{
					"parentId": "d7d6e2e4e2934f2c9385a623fd98c6f3",
					"key": "b583ca44-0371-4f77-a3e3-71546aedert5",
					"name": "menuList",
					"path": "list/menu-list",
					"component": "system/MenuList",
					"meta": {
						"title": "菜单管理",
						"keepAlive": false,
						"icon": null,
						"order": 1,
						"desc": "菜单管理",
						"hidden": false
					},
					"children": null
				},
				{
					"parentId": "d7d6e2e4e2934f2c9385a623fd98c6f3",
					"key": "b583ca44-0374-4f77-a3e3-71546aed6d6b",
					"name": "userList",
					"path": "list/user-list",
					"component": "system/UserList",
					"meta": {
						"title": "用户管理",
						"keepAlive": false,
						"icon": null,
						"order": 1,
						"desc": "用户管理",
						"hidden": false
					},
					"children": null
				}
			]
		}
  ]
  return result
})
